package com.sbj.controller;

import cn.dev33.satoken.SaManager;
import cn.dev33.satoken.stp.SaTokenInfo;
import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.util.StrUtil;
import com.sbj.dto.req.RegisterReq;
import com.sbj.dto.req.WebLoginReq;
import com.sbj.dto.res.MemberRes;
import com.sbj.service.IMemberService;
import com.zmh.framework.sms.AliSms;
import com.zmh.framework.util.Result;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * @author summer
 * @version 1.0
 * @date 2024/8/11 19:43
 */
@RestController
@AllArgsConstructor
@RequestMapping(value = "/h5")
public class ShareController {


    private final IMemberService memberService;





    /**
     * 注册用户
     * @return
     */
    @PostMapping(value = "/register")
    public Result<String> register(@Valid @RequestBody RegisterReq req){
        memberService.register(req);
        return Result.successResult();
    }



}
